# -*- coding: utf-8 -*-
import re
import random
import MySQLdb

def fab(max):
    n, a, b = 0, 0, 1
    while n < max:
        yield b
        a, b = b, a + b
        n = n + 1
for a in fab(10):
    print a
